This is the latest version of Berkeley yacc, ported to MPW. yacc runs as an MPW tool and thus can easily be used in makefiles. It is definitely NOT Mac-friendly, but it runs and that's all I really need it to do. This code is NOT copylefted, so you can do whatever you wish to it as long as you follow the (quite generous) copyright restrictions.
All I had to do was create a "yacc.make" file. I've also fixed a bug in "output.c", (which I have sent back to the BSD folk to add to their next release). This way I can easily patch and update to future revisions of yacc.
A pre-built "yacc" MPW tool is included so you don't have to compile it. I have compiled yacc using "-model far" so it requires at least a 68020 to run. There are no special files to move anywhere. Just move or copy "yacc" to your Tools folder under your MPW Folder, and off you go! Figuring out how to print the man-page on the Mac is not something on my to-do list.
I did port it to Think C, but I prefer the MPW environment - I had a lot less trouble building a program with a large code and data segment than with TC. Also, there's already a version of GNU bison available which has been ported to TC. I found the bug in output.c porting an older version of byacc to TC. I have no idea if the problem actually occurs in this latest version, but the new version of the code was essentially unchanged from the old, so I added the hack anyway.
Support or warrantee promises are neither expressed nor implied.